import request from '@/utils/request'

// 创建角色菜单权限
export function assignPermission(data) {
  return request({
    url: '/sa/permission/assign-role-menu',
    method: 'post',
    data: data
  })
}

// 创建角色菜单权限
export function listRolePermission(roleId) {
  return request({
    url: '/sa/permission/list-role-menus?roleId='+ roleId,
    method: 'get'
  })
}

// 查询机构权限
export function getPermissionList(orgFullId) {
  return request({
    url: '/sa/permission/list-org-menus?orgFullId='+ orgFullId,
    method: 'get'
  })
}
